Optimal. Leaf size=207 \[ -\frac {2 (A-5 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 (13 A-5 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \cos (c+d x)+a}}-\frac {\sqrt {2} (A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.65, antiderivative size = 207, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2961, 2984, 12, 2782, 205} \[ -\frac {2 (A-5 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 (13 A-5 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \cos (c+d x)+a}}-\frac {\sqrt {2} (A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 2782
Rule 2961
Rule 2984
Rubi steps
\begin {align*} \int \frac {(A+B \cos (c+d x)) \sec ^{\frac {7}{2}}(c+d x)}{\sqrt {a+a \cos (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx\\ &=\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {1}{2} a (A-5 B)+2 a A \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx}{5 a}\\ &=-\frac {2 (A-5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {\left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{4} a^2 (13 A-5 B)-\frac {1}{2} a^2 (A-5 B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx}{15 a^2}\\ &=\frac {2 (13 A-5 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 (A-5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {\left (8 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int -\frac {15 a^3 (A-B)}{8 \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{15 a^3}\\ &=\frac {2 (13 A-5 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 (A-5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}-\left ((A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx\\ &=\frac {2 (13 A-5 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 (A-5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {\left (2 a (A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{d}\\ &=-\frac {\sqrt {2} (A-B) \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {2 (13 A-5 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 (A-5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 A \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 7.80, size = 1718, normalized size = 8.30 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.55, size = 164, normalized size = 0.79 \[ \frac {\frac {15 \, \sqrt {2} {\left ({\left (A - B\right )} a \cos \left (d x + c\right )^{3} + {\left (A - B\right )} a \cos \left (d x + c\right )^{2}\right )} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{\sqrt {a}} + \frac {2 \, {\left ({\left (13 \, A - 5 \, B\right )} \cos \left (d x + c\right )^{2} - {\left (A - 5 \, B\right )} \cos \left (d x + c\right ) + 3 \, A\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, {\left (a d \cos \left (d x + c\right )^{3} + a d \cos \left (d x + c\right )^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {7}{2}}}{\sqrt {a \cos \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.43, size = 521, normalized size = 2.52 \[ \frac {\left (15 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \left (\cos ^{3}\left (d x +c \right )\right )-15 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \left (\cos ^{3}\left (d x +c \right )\right )+45 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \left (\cos ^{2}\left (d x +c \right )\right )-45 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \left (\cos ^{2}\left (d x +c \right )\right )+45 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \cos \left (d x +c \right )-45 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \cos \left (d x +c \right )+15 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}-15 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+13 A \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sin \left (d x +c \right )-5 B \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sin \left (d x +c \right )-A \cos \left (d x +c \right ) \sqrt {2}\, \sin \left (d x +c \right )+5 B \cos \left (d x +c \right ) \sqrt {2}\, \sin \left (d x +c \right )+3 A \sqrt {2}\, \sin \left (d x +c \right )\right ) \cos \left (d x +c \right ) \left (\sin ^{4}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}} \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \sqrt {2}}{15 d \left (-1+\cos \left (d x +c \right )\right )^{2} \left (1+\cos \left (d x +c \right )\right )^{3} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\left (A+B\,\cos \left (c+d\,x\right )\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}}{\sqrt {a+a\,\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________